import axios from '@/axios';

// 规则列表
export function ruleList(data) {
    return axios({
        url: '/pool/rule-list',
        method: 'post',
        data
    })
}

// 规则详情
export function ruleInfo(data) {
    return axios({
        url: '/pool/rule-info',
        method: 'post',
        data
    })
}

// 保存规则
export function saveRule(data) {
    return axios({
        url: '/pool/save-rule',
        method: 'post',
        data
    })
}

// 删除规则
export function delRule(data) {
    return axios({
        url: '/pool/del-rule',
        method: 'post',
        data
    })
}

// 用户列表
export function memberList(data) {
    return axios({
        url: '/pool/member-list',
        method: 'post',
        data
    })
}

// 保存用户
export function saveMember(data) {
    return axios({
        url: '/pool/save-member',
        method: 'post',
        data
    })
}

// 删除用户
export function delMember(data) {
    return axios({
        url: '/pool/del-member',
        method: 'post',
        data
    })
}
